package com.lhkj.ct.meta.modules.gauge.model.dto;

import com.lhkj.ct.meta.modules.gauge.model.entity.TblGaugeQuestion;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * <p>
 * 描述
 * </p>
 *
 * @author job
 * @since 2023/10/22
 */
@Setter
@Getter
public class QuestionsDto {

    @ApiModelProperty(value = "题目json")
    @NotBlank(message = "题目json不能为空")
    private String questionJson;

    @ApiModelProperty(value = "题目数据")
    @NotEmpty(message = "请至少设置一道题目")
    @Valid
    private List<TblGaugeQuestion> questions;

}
